﻿/***************************************************/
/*** file:ProtocolMgr.cs                         ***/
/*** date:2010-08-14                             ***/
/*** author:huas                                 ***/
/*** function:preallocate protocol               ***/
/***************************************************/



using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using IM.Common;

namespace IM.Logic
{
    class ProtocolMgr
    {
        private c2s_account_verify m_c2s_account_verify;
        private s2c_account_verify_result m_s2c_account_verify_result;
        private c2s_account_logout m_c2s_account_logout;
        private c2s_account_chat m_c2s_account_chat;
        private s2c_account_chat m_s2c_account_chat;
        private s2c_account_logout m_s2c_account_logout;

        public ProtocolMgr()
        {
            m_c2s_account_verify = new c2s_account_verify();
            m_s2c_account_verify_result = new s2c_account_verify_result();
            m_c2s_account_logout = new c2s_account_logout();
            m_c2s_account_chat = new c2s_account_chat();
            m_s2c_account_chat = new s2c_account_chat();
            m_s2c_account_logout = new s2c_account_logout();
        }

        public s2c_account_logout s2c_account_logout
        {
            get
            {
                m_s2c_account_logout.Init();
                return m_s2c_account_logout;
            }
        }

        public c2s_account_verify c2s_account_verify
        {
            get
            {
                m_c2s_account_verify.Init();
                return m_c2s_account_verify;
            }
        }
        public s2c_account_verify_result s2c_account_verify_result
        {
            get
            {
                m_s2c_account_verify_result.Init();
                return m_s2c_account_verify_result;
            }
        }

        public c2s_account_logout c2s_account_logout
        {
            get
            {
                m_c2s_account_logout.Init();
                return m_c2s_account_logout;
            }
        }

        public c2s_account_chat c2s_account_chat
        {
            get
            {
                m_c2s_account_chat.Init();
                return m_c2s_account_chat;
            }
        }
        public s2c_account_chat s2c_account_chat
        {
            get
            {
                m_s2c_account_chat.Init();
                return m_s2c_account_chat;
            }
        }
    }
}
